package com.xtwy.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @作 者: 侯建军
 * @日 期: 2018/8/1 22:21
 * @描 述: 解决403错误 跨站请求伪造
 * @公 司：山西迅腾伟业
 */
@Configuration
public class WebSecurityConfig extends
        WebSecurityConfigurerAdapter {
    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http
                .csrf().disable();
    }
}
